package org.dx.oho.entity;

import java.util.Date;
import java.util.Objects;

/**
 * create by duanx 2020/11/9
 *@description： 头条表
 *@classname: HeadLine
 *@author: duanx
 *@date: 2020/11/9 17:20
 **/
public class HeadLine extends BaseEntity{
    /**
     * 头条ID
     */
    private Integer lineId;
    /**
     * 头条名称
     */
    private String lineName;
    /**
     * 头条连接
     */
    private String lineLink;
    /**
     * 头条图片
     */
    private String lineImg;
    /**
     * 头条优先级
     */
    private Integer priority;
    /**
     * 头条状态
     */
    private String enableStatus;

    public Integer getLineId() {
        return lineId;
    }

    public void setLineId(Integer lineId) {
        this.lineId = lineId;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getLineLink() {
        return lineLink;
    }

    public void setLineLink(String lineLink) {
        this.lineLink = lineLink;
    }

    public String getLineImg() {
        return lineImg;
    }

    public void setLineImg(String lineImg) {
        this.lineImg = lineImg;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(String enableStatus) {
        this.enableStatus = enableStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        HeadLine headLine = (HeadLine) o;
        return Objects.equals(lineId, headLine.lineId) &&
                Objects.equals(lineName, headLine.lineName) &&
                Objects.equals(lineLink, headLine.lineLink) &&
                Objects.equals(lineImg, headLine.lineImg) &&
                Objects.equals(priority, headLine.priority) &&
                Objects.equals(enableStatus, headLine.enableStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(lineId, lineName, lineLink, lineImg, priority, enableStatus);
    }

    @Override
    public String toString() {
        return "HeadLine{" +
                "lineId=" + lineId +
                ", lineName='" + lineName + '\'' +
                ", lineLink='" + lineLink + '\'' +
                ", lineImg='" + lineImg + '\'' +
                ", priority=" + priority +
                ", enableStatus='" + enableStatus + '\'' +
                '}';
    }
}
